package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.shopping.model.ShoppingChooseSubTaxs;
/**
* 购物车中选择某商品，需计算购物车价格，多次点击切换选中状态，全选操作需要前端计算当前需要改变的ID拼接成字符串，若传递了areaId则是某个仓库的全选操作，否则就是所有的全选操作，根据status状态确定当前传递的IDs是选中还是取消
* @author wliu
* edit tse
*/
public class ShoppingChooseResponse extends RudderResponse{

private List<ShoppingChooseSubTaxs> subTaxs = new ArrayList<ShoppingChooseSubTaxs>();


private String total = "";


private String isCanUsed = "";


/**
* @return subTaxs
*/
public List<ShoppingChooseSubTaxs> getSubTaxs() {
return this.subTaxs;
}

/**
* @return subTaxs
*/
public void setSubTaxs(List<ShoppingChooseSubTaxs> subTaxs) {
this.subTaxs = subTaxs;
}
/**
methodName    SubTaxs
type          List<ShoppingChooseSubTaxs>
name          subTaxs
defaultType   new ArrayList<ShoppingChooseSubTaxs>()
*/

/**
* @return total
*/
public String getTotal() {
return this.total;
}

/**
* @return total
*/
public void setTotal(String total) {
this.total = total;
}
/**
methodName    Total
type          String
name          total
defaultType   ""
*/

/**
* @return isCanUsed
*/
public String getIsCanUsed() {
return this.isCanUsed;
}

/**
* @return isCanUsed
*/
public void setIsCanUsed(String isCanUsed) {
this.isCanUsed = isCanUsed;
}
/**
methodName    IsCanUsed
type          String
name          isCanUsed
defaultType   ""
*/

/**


    private static void filterFor(ShoppingChooseSubTaxs shopping) {
        if (shopping.getAreaId() == null) {
            shopping.setAreaId("");
        }
        if (shopping.getSubTax() == null) {
            shopping.setSubTax("");
        }
    }

    public static void filter(ShoppingChooseResponse shopping) {
        if (shopping.getSubTaxs() == null) {
            shopping.setSubTaxs(new ArrayList<ShoppingChooseSubTaxs>());
        } else {
            for (ShoppingChooseSubTaxs item : shopping.getSubTaxs()) {
                filterFor(item);
            }
        }
        if (shopping.getTotal() == null) {
            shopping.setTotal("");
        }
        if (shopping.getIsCanUsed() == null) {
            shopping.setIsCanUsed("");
        }
    }

*/

}
